﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildGardenInfo extends IMessageBase
    {
        public var guildId:int;
        public var canPickUp:Boolean;
        public var treeName:String;
        public var nextPickUpDt:Date;
        public const _type:int = 5111;
        public static var _regist:SGuildGardenInfo = new SGuildGardenInfo(true);

        public function SGuildGardenInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildGardenInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.guildId);
            param1.writeBool(this.canPickUp);
            param1.writeString(this.treeName);
            param1.writeDate(this.nextPickUpDt);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.guildId = param1.readInt();
            this.canPickUp = param1.readBool();
            this.treeName = param1.readString();
            this.nextPickUpDt = param1.readDate();
            return;
        }// end function

    }
}
